<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>多个提交方法</title>
</head>
<body>
<s:form action="/struts/moreSubmit.action">
  <s:textfield name="msg" label="输入内容"/>
  <s:submit name="save" value="保存" align="left" method="save"/>
  <s:submit name="print" value="打印" align="left" method="print"/>
</s:form>

<s:form action="/struts/submit.action">
  <s:textfield name="msg" label="输入内容"/>
  <s:submit name="save" value="保存"/>
</s:form>
</body>
</html>